package com.wing.res.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.res.model.entity.ResProTask;
import com.wing.res.model.entity.ResWorkStation;
import com.wing.res.model.request.ResProProcessAddForm;
import com.wing.res.model.request.ResProQualityAddForm;
import com.wing.res.model.request.ResProTaskAddForm;
import com.wing.res.model.request.ResWorkStationUpdateForm;
import com.wing.res.model.response.ResProTaskDetailVo;
import com.wing.res.model.response.ResProTaskSearchVo;
import com.wing.res.model.response.ResWorkStationSearchVo;
import com.wing.web.excel.DrawExcelIn;
import com.wing.web.excel.WorkStationExcelIn;

import java.util.List;
import java.util.Map;


/**
 * 工位-Service
 *
 * @version 1.1.0
 * @Author hz
 * @Date 2024-09-19 15:33
 **/
public interface ResWorkStationService extends IService<ResWorkStation> {

    /**
     * 查询工位信息
     * @param pg
     * @param map
     * @return
     */
    Page<ResWorkStationSearchVo> pageList4app(Page<ResWorkStationSearchVo> pg, Map<String, Object> map);

    /**
     * 禁用
     * @param id
     * @return
     */
    int cancellation(String id);

    /**
     * 启用
     * @param id
     * @return
     */
    int recover(String id);

    /**
     * 修改工位信息
     * @param form
     * @return
     */
    int updateWorkStationBy(ResWorkStationUpdateForm form);

    /**
     * 添加工位信息
     * @param form
     * @return
     */
    int addWorkStationBy(ResWorkStationUpdateForm form);

    void importExcel(List<WorkStationExcelIn> list);
}
